<?php get_header(); ?>
		<div class="content">
			<div class="wrapper-slideshow">
				<div id="mycarousel" class="jcarousel-skin-tango">
				    <ul>
						<?php $slideshow_home = new WP_Query( 'post_type=slideshow_home' ); ?>
						<?php if ( $slideshow_home->have_posts() ) : while ( $slideshow_home->have_posts() ) : $slideshow_home->the_post(); ?>
						<li><?php the_post_thumbnail( 'slideshow-home' ); ?></li>
						<?php endwhile; endif; ?>
				    </ul>
				    <div class="como-funciona-slideshow">COMO FUNCIONA</div>
				    <div class="jcarousel-control">
				      <a href="#" class="nav-slide um active">1</a>
				      <div class="seta"></div>
				      <a href="#" class="nav-slide dois">2</a>
				      <div class="seta"></div>
				      <a href="#" class="nav-slide tres">3</a>
				      <div class="seta"></div>
				      <a href="#" class="nav-slide quatro">4</a>
				      <span class="clear"></span>
				    </div>
				    <span class="clear"></span>
			  </div>
			</div><!-- /wrapper-slideshow -->
			<div class="sidebar">
				<h2 class="titulo">Curta Nossa Página no <span class="facebook">Facebook</span></h2>
				<iframe src="http://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2F<?php echo get_custom('facebook_link'); ?>&amp;width=344&amp;height=290&amp;colorscheme=light&amp;show_faces=true&amp;header=true&amp;stream=false&amp;show_border=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:344px; height:290px;" allowTransparency="true"></iframe>
				<a href="#" class="publicidade"><img src="<?php bloginfo('template_directory')?>/img/publicidade.jpg"></a>
			</div>
			<div class="item-home ultimos-parceiros">
				<h2 class="titulo">Últimos Parceiros</h2>
				<ul class="parceiros">
					<?php $parceiros = new WP_Query( 'post_type=parceiro&posts_per_page=4' ); ?>
					<?php if ( $parceiros->have_posts() ) : while ( $parceiros->have_posts() ) : $parceiros->the_post(); ?>
						<li class="parceiro-home">
							<div class="wrapper-img-parceiro"><a href="<?php echo get('informacoes_link'); ?>" target="blank"><?php the_post_thumbnail('parceiro'); ?></a></div>
							<div class="texto">
								<h3><a href="<?php echo get('informacoes_link'); ?>" target="blank"><?php the_title(); ?></a></h3>
								<p> <?php $exc = get_the_excerpt(); echo limit_words($exc, 8); ?> [...]</p>
							</div>
						</li>
					<?php endwhile; endif; ?>
					<span class="clear"></span>
				</ul>
				<p class="separador"><a href="parceiros" class="veja-mais">veja mais ></a></p>
			</div>
			<div class="item-home brindes-recentes">
				<h2 class="titulo">Brindes Recentes</h2>
			    <ul id="parceiros-carousel" class="jcarousel-skin-brindes">
					<?php $count = 1; ?>
					<?php $brinde = new WP_Query( 'post_type=brinde&posts_per_page=12' ); ?>
					<?php if ( $brinde->have_posts() ) : while ( $brinde->have_posts() ) : $brinde->the_post(); ?>
						<?php  if ($count%4 == 1)
							    {  
							         echo "<li>";
							    } ?>
						  <div>
							<div class="wrapper-img-brindes-home">
								<?php the_post_thumbnail('brindes-home'); ?>
							</div>
							<p><?php the_title();?><br>
							<?php echo get('outros_tipo'); ?> <?php echo get('outros_desconto'); ?></p>
						  </div>
						<?php if ($count%4 == 0)
							{ echo "</li>"; }
						$count++; ?>
					<?php endwhile; endif; ?>
					<?php if ($count%4 != 1) echo "</li>"; ?>
			    </ul>
				<p class="separador"><a href="brindes" class="veja-mais">veja todos ></a></p>
			</div>
			<span class="clear"></span>
		</div><!-- content -->
<?php get_footer(); ?>